//
//  TestRunner.m
//  TestRunner
//
//  Created by 胡胜刚 on 2017/3/1.
//  Copyright © 2017年 TestBird. All rights reserved.
//

#import <XCTest/XCTest.h>

#import <WebDriverAgentLib/FBDebugLogDelegateDecorator.h>
#import <WebDriverAgentLib/FBFailureProofTestCase.h>
#import <WebDriverAgentLib/FBWebServer.h>
#import <WebDriverAgentLib/XCTestCase.h>

@interface UITestingUITests : FBFailureProofTestCase<FBWebServerDelegate>
@end

@implementation UITestingUITests

+ (void)setUp
{
    [FBDebugLogDelegateDecorator decorateXCTestLogger];
    [super setUp];
}

/**
 Never ending test used to start WebDriverAgent
 */
- (void)testRunner
{
    FBWebServer *webServer = [FBWebServer new];
    webServer.delegate = self;
    [webServer startServing];
}

- (void)webServerDidRequestShutdown:(FBWebServer *)webServer
{
    [webServer stopServing];
}
@end
